<template>
	<view>
		<view class="_a" v-if="show==false">
			<view class="_b">
				<image :src="get_img+'sys/blind/dian_red.jpg'" class="image"></image>
				<view class="text">你收到一个优惠券</view>
			</view>
			<view class="but">
				<button @click="get_bt" type="success" class="cbut">
					<view class="but_text">点击领取</view>
				</button>
			</view>
		</view>
		<view v-if="show==true">
			<view>
				<image :src="get_img+'sys/blind/hbbj.png'" class="image1"></image>
			</view>
			<view style="position: absolute;">
				<view class="hb">
					<u--image height="700rpx" width="500rpx" :src="get_img+'sys/blind/hb_chai.png'"></u--image>
				</view>
				<view class="b2">
					<view>
						<image  class="tx" ></image>
					</view>
					<view class="ts">
						<p>恭喜您获得优惠券！！</p>
					</view>
				</view>
				<view class="b1">
					<image @click="get_money" class="image2" src="../../static/icon/button_six.png"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				get_img: this.$get_img,
				show:false
			}
		},
		onLoad() {
		},
		onShow() {
		},
		methods: {
			get_bt() {
				this.show = true
			},
			get_money() {
				uni.navigateTo({
					url:'/pages/coupon/coupon_money'
				})
			},
	
		}
	}
</script>

<style>
	.image1 {
		width: 100vw;
		height: 100vh;
		z-index: -1;
		position: fixed;
	}

	._a {
		width: 750rpx;
		height: 800rpx;
		position: absolute;
	}

	._b {
		margin: 100rpx 216rpx 0 216rpx;
		text-align: center;
	}

	.image {
		width: 340rpx;
		height: 490rpx;
	}

	.text {
		width: 340rpx;
		color: #BABABA;
	}

	.but {
		margin-top: 40rpx;
		width: 650rpx;
		height: 80rpx;
		margin-left: 50rpx;
	}

	.cbut {
		background-color: #33CC33;
		color: #FFFFFF;
		letter-spacing: 10rpx;
		font-size: 35rpx;
		font-weight: 500;
		height: 80rpx;
	}

	.but_text {
		font-size: 45rpx;
		margin-top: -15rpx;
	}

	.image2 {
		height: 100rpx;
		width: 100rpx;
	}

	.b1 {
		height: auto;
		width: 90rpx;
		margin: 480rpx 0 0 320rpx;
		z-index: 1;
		position: absolute;
	}

	.b2 {
		height: auto;
		width: 250rpx;
		margin: 210rpx 0 0 250rpx;
		z-index: 1;
		position: absolute;
	}

	.hb {
		margin: 200rpx 0 0 125rpx;
		z-index: 0;
		position: fixed;
	}

	.tx {
		height: 110rpx;
		width: 110rpx;
		background-color: #FFFFFF;
		border-radius: 55rpx;
		margin-left: 70rpx;
	}

	.ts {
		font-size: 22rpx;
		text-align: center;
		margin-top: 30rpx;
	}
</style>
